<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
    <head> 
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%@ include file="/WEB-INF/views/include/head.jsp"%>
    <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
    <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css">
</head>
<body>
<div class="layerHeader clearfix">
	<p class="headerTitle"><spring:message code="purchasingResume_head" /></p>
    <div class="headerButton clearfix">
        <button type="button" onclick="closeWin()"><spring:message code="btn_cancle" /></button>
    </div>
</div>
<div class="">
	<div class="tableArea">
    	<div class="tableScroll tableScrollSm" style="overflow:auto;height:282px;width:590px" >
    		<table cellpadding="0" class="tableHead">
                <thead>
                <tr>
                    <th><p style="width:50px"><spring:message code="purchasingResume_no" /></p></th>
                    <th><p style="width:115px"><spring:message code="purchasingResume_contractPartyName" /></p></th>
                    <th><p style="width:80px"><spring:message code="purchasingResume_purchaseUnitPrice" /></p></th>
                    <th><p style="width:80px"><spring:message code="purchasingResume_purchaseReserveQuantity" /></p></th>
                    <th><p style="width:80px"><spring:message code="purchasingResume_purchaseTaxRebate" /></p></th>
                    <th><p style="width:80px"><spring:message code="purchasingResume_purchaseTotalAmount" /></p></th>
                    <th><p style="width:80px"><spring:message code="purchasingResume_contractMeterialDate" /></p></th>
                </tr>
                </thead>
            </table>
            <table cellpadding="0" class="tableBody">
            <c:if test="${not empty orderMateriel.contractMeterialList}" >
                <tbody>
                <c:forEach items="${orderMateriel.contractMeterialList}" var="purchasingResume" varStatus="status">
                <tr>
                    <!-- No. -->
                    <td><p style="width:50px">${status.index+1}</p></td>
                    <!-- 供货商名称 -->
                    <td><p style="width:115px" class='text_overflow' data-toggle='tooltip' title='${purchasingResume.contractPartyName}'>${purchasingResume.contractPartyName}</p></td>
                    <!-- 采购单价 -->
                    <td><p style="width:80px"><fmt:formatNumber value="${purchasingResume.purchaseUnitPrice}" pattern="#,##0.00###"/></p></td>
                    <!-- 采购数量 -->
                    <td><p style="width:80px"><fmt:formatNumber value="${purchasingResume.purchaseReserveQuantity}" pattern="#,##0.#####"/></p></td>
                    <!-- 其他费用 -->
                    <td><p style="width:80px"><fmt:formatNumber value="${purchasingResume.purchaseTaxRebate}" pattern="#,##0.#####"/></p></td>
                    <!-- 采购金额 -->
                    <td><p style="width:80px"><fmt:formatNumber value="${purchasingResume.purchaseReserveQuantity * purchasingResume.purchaseUnitPrice + purchasingResume.purchaseTaxRebate}" pattern="#,##0.00###"/></p></td>
                    <!-- 报价日期 -->
                    <td><p style="width:80px"><fmt:formatDate value="${purchasingResume.contractMeterialDate}" pattern="yyyy-MM-dd"/></p><p>
                </tr>
                </c:forEach>
                </tbody>
            </c:if>    
            </table>
        </div>
    </div>
</div>
</body>
</html>